﻿<%@ Page Title="Sales Order Pending List" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="PartsSOPendingList.aspx.cs" Inherits="VSM.PartsSOPendingList" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>&nbsp;SO Pending List</h2>
    <asp:HiddenField ID="hdnisUpdate" runat="server" />
    <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div style="margin-left: 5px; width: 99%;">
                <hr />
                <table style="width: 100%;" border="0">
                    <tr>
                        <td style="width: 100%">
                            <asp:Label ID="lblError" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:GridView ID="grvItem" CssClass="GridInner" runat="server" Width="100%" BorderColor="White"
                                BackColor="White" AllowSorting="True" AutoGenerateColumns="False" CellPadding="2"
                                HeaderStyle-Height="27px" CellSpacing="2"
                                HeaderStyle-VerticalAlign="Middle" 
                                OnRowDataBound="grvSearchResult_RowDataBound"   AllowPaging="True" 
                                OnPageIndexChanging="grvSearchResult_PageIndexChanging" PageSize="20">
                                <PagerSettings Mode="NumericFirstLast" />
                                <PagerStyle BackColor="#70A0D0" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <RowStyle BackColor="#D9E0ED" BorderColor="White" BorderWidth="2px" Height="25px" />
                                <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Action">
                                        <ItemStyle HorizontalAlign="Center"  Width="5%"/>
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkEdit" runat="server" Text='Edit' BorderStyle="none" OnClick="lnkEdit_Click">
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="No." >
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDocEntry" runat="server" Text='<%# Bind("DocEntry") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Document Date" >
                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDocDate" runat="server" Text='<%# Bind("DocDate", "{0:dd/MM/yyyy}")%>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Due Date" >
                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDocDueDate" runat="server" Text='<%# Bind("DocDueDate", "{0:dd/MM/yyyy}")%>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="BP. Code" >
                                        <ItemStyle HorizontalAlign="Center"  Width="5%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblCardCode" runat="server" Text='<%# Bind("CardCode") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="BP. Name" >
                                        <ItemStyle HorizontalAlign="Left"  Width="25%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblCardName" runat="server" Text='<%# Bind("CardName") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Remark" >
                                        <ItemStyle HorizontalAlign="Left"  Width="20%" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblComments" runat="server" Text='<%# Bind("Comments") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Approval Status" >
                                        <ItemStyle HorizontalAlign="Center" Width="10%"/>
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblApprovalStatus" runat="server" Text='<%# Bind("U_OrderConfirm") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Document Total">
                                        <ItemStyle HorizontalAlign="Right" />
                                        <HeaderStyle VerticalAlign="Middle" Width="10%" />
                                        <ItemTemplate>
                                            <asp:Label ID="txtDocTotal" runat="server" Text='<%#String.Format("{0,-15:#,##0.00}", Eval("DocTotal"))%>' BorderStyle="none" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle BackColor="#6095C9"  ForeColor="#ffffff" Font-Overline="False" Height="27px" VerticalAlign="Bottom" />
                                <EmptyDataTemplate>
                                    <table class="GridInner" style="width: 100%; border-color: White;" border="1" rules="all"
                                        cellspacing="2" cellpadding="2">
                                        <tr valign="middle" style="height: 27px; color: white;  text-decoration: none; background-color: rgb(96, 149, 201);">
                                            <th style="width: 10%">
                                                <span>Action</span>
                                            </th>
                                            <th style="width: 10%">
                                                <span>Document Date</span>
                                            </th>
                                            <th style="width: 10%">
                                                <span>Due Date</span>
                                            </th>
                                            <th style="width: 10%">
                                                <span>BP. Code</span>
                                            </th>
                                            <th style="width: 20%">
                                                <span>BP. Name</span>
                                            </th>
                                            <th style="width: 20%">
                                                <span>Remark</span>
                                            </th>
                                            <th style="width: 10%">
                                                <span>Approval Status</span>
                                            </th>
                                            <th style="width: 10%">
                                                <span>Document Total</span>
                                            </th>
                                           
                                        </tr>
                                        <tr>
                                            <td colspan="8">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
